class FastAPIException extends Error{
    constructor(msg = ""){
        super(msg);
        this.msg = msg;
    }
}

class FastAPIPortCreateErrorException extends FastAPIException{
    constructor(msg){
        super(msg);
    }
}

class FastAPIUknowPortException extends FastAPIException{
    constructor(port,msg){
        super(msg);
        this.port = port;
    }
}

class FastAPIPortRangeException extends FastAPIException{
    constructor(port,msg){
        super(msg);
        this.port = port;
    }
}

module.exports.FastAPIException = FastAPIException;
module.exports.FastAPIPortCreateErrorException = FastAPIPortCreateErrorException;
module.exports.FastAPIUknowPortException = FastAPIUknowPortException;
module.exports.FastAPIPortRangeException = FastAPIPortRangeException;